package duylinh

class Video implements Serializable{

    public static final long MAX_SIZE = 209715200L // in Bytes = 200 Mbytes
    public static final List<String> ACCEPTED_FORMATS = ["avi", "mp4", "3gp", "m4v", "flv", "mpg", "wmv"]

    String  title
    String  description
    String  path
    String  thumbPath
    User    uploader
    Date    dateCreated


    static constraints = {
        dateCreated (nullable: true)
        title           (nullable:false, blank:false, maxSize:100)
        description     (nullable:false, blank:false, maxSize:255)
        path(nullable: true)
        thumbPath(nullable: true)
    }
}
